﻿<Page
    x:Class="EmprestaAE.MVVM.View.ContactPickerView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:EmprestaAE.MVVM.View"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:viewmodel="using:EmprestaAE.MVVM.ViewModel"
    mc:Ignorable="d">

    <Page.Resources>
        <viewmodel:LendVM x:Key="contactpickervm"/>
    </Page.Resources>

    <Grid Background="{StaticResource ApplicationBackgroundColor}"
          DataContext="{Binding Source={StaticResource contactpickervm}, Path=Instance}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="6*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <!-- back button -->
        <Grid Grid.Column="0" 
              Grid.Row="0">
            <Button Style="{StaticResource BackButtonStyle}"
                    Grid.Row="0"
                    Grid.Column="0"
                    Command="{Binding NavigationService.GoBackCommand}">
            </Button>
        </Grid>

        <!-- title -->
        <Grid Grid.Row="0"
              Grid.Column="1">
            <TextBlock Style="{StaticResource PageSubheaderTextStyle}"
                       Text="{StaticResource ContactPickerViewTitle}"
                       Grid.Column="1"
                       Grid.Row="0"/>
        </Grid>

        <!-- content -->
        <Grid Grid.Column="1"
              Grid.Row="1">
            <GridView ItemsSource="{Binding PersonList}">
                
            </GridView>
                      
        </Grid>
    </Grid>
</Page>